/**
 * Copyright &copy; 2016-2017 <a href="https://www.lczyfz.com">联创智云</a> All rights reserved.
 */
package com.lczyfz.campusinfo.modules.campusinfoexam.entity;

import org.hibernate.validator.constraints.Length;
import com.lczyfz.campusinfo.modules.sys.entity.User;

import com.lczyfz.campusinfo.common.persistence.DataEntity;

/**
 * 模拟考试管理Entity
 *
 * @author yt
 * @version 2017-10-20
 */
public class CampusinfoExam extends DataEntity<CampusinfoExam> {

    private static final long serialVersionUID = 1L;
    private String examname;        // 考试名称
    private String payment;        // 考试费用
    private String paymentMethod;        // 支付方式
    private String paymentPlace;        // 缴费地点
    private User user;        // 归属用户

    public CampusinfoExam() {
        super();
    }

    public CampusinfoExam(String id) {
        super(id);
    }

    @Length(min = 1, max = 64, message = "考试名称长度必须介于 1 和 64 之间")
    public String getExamname() {
        return examname;
    }

    public void setExamname(String examname) {
        this.examname = examname;
    }

    @Length(min = 1, max = 255, message = "考试费用长度必须介于 1 和 255 之间")
    public String getPayment() {
        return payment;
    }

    public void setPayment(String payment) {
        this.payment = payment;
    }

    @Length(min = 0, max = 64, message = "支付方式长度必须介于 0 和 64 之间")
    public String getPaymentMethod() {
        return paymentMethod;
    }

    public void setPaymentMethod(String paymentMethod) {
        this.paymentMethod = paymentMethod;
    }

    @Length(min = 0, max = 255, message = "缴费地点长度必须介于 0 和 255 之间")
    public String getPaymentPlace() {
        return paymentPlace;
    }

    public void setPaymentPlace(String paymentPlace) {
        this.paymentPlace = paymentPlace;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}